package com.lmk.mkcc.feign;

import com.lmk.mkcc.CourseDoc;
import com.lmk.mkcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-search",fallbackFactory =CourseEsServiceFallbackFactory.class)
public interface CourseEsService {
    // 添加
    @PostMapping("/course/addCourseEs")
    JSONResult saveCourseEs(@RequestBody CourseDoc courseDoc);
    @DeleteMapping("/course/delect/{id}")
    JSONResult delectCourseEs(@PathVariable("id") Long id);
}
